// 导入英雄类
import {
    Hero
} from './module/HeroClass.js'
// 导入数据
import {
    data
} from './data.js'


// 渲染函数
function domRender(game, value) {
    let hero = new Hero(value, data)
    game.onclick = function (e) {
        if (e.target.nodeName === 'BUTTON' && e.target.innerText === '英雄') {
            hero.skinContainer.style.display = 'none'
            hero.heroContainer.style.display = 'block'
        }
    }
    return hero.ponds
}
export {
    domRender
}